package com.lagou.service;

import com.github.pagehelper.PageInfo;
import com.lagou.domain.PromotionAd;
import com.lagou.domain.PromotionAdVO;

import java.util.List;

public interface PromotionAdService {
    //分页获取所有的广告列表
    public List<PromotionAd> findAllAdByPage();

    //分页获取所有的广告列表
    public PageInfo<PromotionAd> findAllAdByPage(PromotionAdVO promotionAdVO);

    //添加广告信息
    public void savePromotionAd(PromotionAd promotionAd);

    //修改广告信息
    public void updatePromotionAd(PromotionAd promotionAd);

    //回显广告信息
    public PromotionAd findPromotionAdById(int id);

    //修改广告状态
    public void updatePromotionAdStatus(int id, int status);
}
